import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Test from '@/components/Test'
import CustomerAdd from '@/components/Customer/CustomerAdd'
import Login from '@/components/Login'
import StaffHome from '@/components/Staff/StaffHome'
import ManagerHome from '@/components/Manager/ManagerHome'
Vue.use(Router)

export default new Router({
    mode:'history',
    routes: [
        // {
        //   path: '/',
        //   name: 'HelloWorld',
        //   component: HelloWorld
        // },
        {
            path: '/test',
            name: 'HelloWorld',
            component: Test
        },
        {
            path: '/customer',
            name: 'CustomerAdd',
            component: CustomerAdd
        },
        {
            path:'/',
            name:'Login',
            component: Login

        },
        {
            path:'/staff',
            name:'StaffHome',
            component:StaffHome
        },
        {
            path:'/manager',
            name:'ManagerHome',
            component:ManagerHome
        }

  ]
})
